/**
 * @Author:Geln Yang
 * @Created:2008-7-30
 * $ Revision: 1.0 $
 * $ Author: Geln Yang $
 * $ Date: 2008-7-30 $
 */
package org.geln.web.webwork.interceptor;
import org.geln.web.container.Application;

import com.opensymphony.xwork.ActionInvocation;
import com.opensymphony.xwork.interceptor.Interceptor;

/**
 * @Author:Geln Yang
 * @Created:2008-7-30
 */
public class ComponentAutowireInterceptor implements Interceptor {

	public void destroy() {
	}

	public void init() {
	}

	public String intercept(ActionInvocation invocation) throws Exception {
		Application.getInstance().getContainer().autowireComponent(invocation.getAction());
		return invocation.invoke();
	}

}
